package com.cdu.guoxinan.www.smartcom.domian.pojo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
/**
 * 车辆信息表
 * @TableName vehicle
 */
public class Vehicle implements Serializable {

    /**
     * 车辆ID
     */
    @NotNull(message="[车辆ID]不能为空")
    @ApiModelProperty("车辆ID")
    private Long vehicleId;
    /**
     * 车牌号
     */
    @NotBlank(message="[车牌号]不能为空")
    @Size(max= 20,message="编码长度不能超过20")
    @ApiModelProperty("车牌号")
    @Length(max= 20,message="编码长度不能超过20")
    private String vehicleNumber;
    /**
     * 车主ID
     */
    @NotNull(message="[车主ID]不能为空")
    @ApiModelProperty("车主ID")
    private Long residentId;
    /**
     * 停车位ID
     */
    @ApiModelProperty("停车位ID")
    private Long parkingSpotId;


}

